<template>
  <div>
    <div ref="stateDom" />
  </div>
</template>
<style lang="scss" scoped>
</style>

<script setup>
// 导入Vue组合API
import { ref, onMounted } from 'vue'
// 导入webgl 渲染方法
import getScene from './settings/main'
// 获取元素的Dom
const stateDom = ref(null)
onMounted(() => {
  // 加载webgl
  getScene(stateDom.value)
})

</script>
<script>
export default {
  name: 'MyName'
}
</script>
